package br.com.main.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.DeckPanel;
import com.google.gwt.user.client.ui.RootPanel;

/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class Inex implements EntryPoint {

	/**
	 * This is the entry point method.
	 */
	public void onModuleLoad() {
		DeckPanel deck = new DeckPanel();

		CrudUsuarioView telaCadastro = new CrudUsuarioView();
		LoginView login = new LoginView();
		
		deck.add(login);
		deck.add(telaCadastro);

		deck.showWidget(0);

		new CrudUsuarioPresent(telaCadastro, deck);
		new LoginPresenter(login, deck);

		RootPanel.get("PrincipalContent").add(deck);
	}
}
